﻿
using System.ServiceModel.DomainServices.Client;

namespace WebSilverlight.Web
{
    public partial class ClienteListProvider
    {
    #region Properties
		ClienteDomainContext _dc;
        public ClienteDomainContext DomainContext
        {
            set
            {
                _dc = value;
                if (_dc.ClienteWrappers.Count == 0)
                {
                    _dc.Load<ClienteWrapper>(_dc.GetClienteQuery());
                }
            }
        }
        public EntitySet<ClienteWrapper> EntityList
        {
            get
            {
                return _dc.ClienteWrappers;
            }
        }        
	#endregion
		public ClienteListProvider()
        {
            DomainContext = new ClienteDomainContext();
        }
    }
}
